package com.ruoyi.admin.utils.qinniu;

/**
 * @author Shenjh
 * @version 1.0.0
 * @title FileUtil
 * @description <TODO description class purpose>
 * @date 2023/3/21 10:34
 */
public class FileUtil {
    public static String[] IMAGE_FILE_EXTD = new String[] { "png", "bmp", "jpg", "jpeg","pdf" };

    public static boolean isFileAllowed(String fileName) {
        for (String ext : IMAGE_FILE_EXTD) {
            if (ext.equals(fileName)) {
                return true;
            }
        }
        return false;
    }
}
